home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Taifun / Taifun 006 (1987-02-15)(Ossowski, Stefan)(DE)(PD).zip / Taifun 006 (1987-02-15)(Ossowski, Stefan)(DE)(PD).adf / IconExec / readme < prev    next >
Text File  |  1987-03-04  |  2KB  |  51 lines

  1. Article 751 of net.micro.amiga:
  2. Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site unisoft.UUCP
  3. Path: unisoft!lll-lcc!lll-crg!seismo!harvard!talcott!panda!genrad!decvax!mcnc!ncsu!jcz
  4. From: jcz@ncsu.UUCP
  5. Newsgroups: net.micro.amiga
  6. Subject: ICONEXEC utility
  7. Message-ID: <3010@ncsu.UUCP>
  8. Date: 21 Feb 86 05:04:53 GMT
  9. Date-Received: 22 Feb 86 07:15:57 GMT
  10. Sender: jcz@ncsu.UUCP
  11. Organization: SAS Institute Inc.
  12. Lines: 256
  13.  
  14. Here are two simple utilities that may make it easier to write code that
  15. runs from workbench.  The second utility IconExec allows you to run any
  16. arbitrary command from an Icon WITHOUT having to recompile a program
  17. everytime you wish to change what is run.  The other utility allows you
  18. to set the default window that will be used when an Icon is selected.
  19.  
  20. As a matter of short explaination, whenever an Icon is selected, the
  21. ToolWindow field is (supposed to be) copied into the initial startup
  22. message that is passed to your program.  The startup code (c.o) looks
  23. at that message and opens up that window by default.  In this way you can
  24. always associate a window with a program without having to open it in
  25. your code.  Unfortunately, Intuition (or whomever is responsible) fails
  26. to copy the ToolWindow field over and no window is opened currently.
  27. ICONEXEC takes that into account and opens up the window anyway (Until
  28. the parameter gets copied correctly in a later OS release) and sets it
  29. as the default window.
  30.  
  31. Once a window is established, the commands that are contained in the
  32. ToolTypes arrays are then executed one at a time.  More detailed information
  33. about how the Icons are organizied is in Chapter 4 of Volume1 in the 1.1
  34. Rom Kernal Manual, although the information is not critical to using
  35. the program.  If enough interest exists, I will create a tutorial on
  36. using Icons or whatever other information is desired in creating/accessing
  37. them from a program.
  38.  
  39. These programs were created in response to a request for being able to run
  40. programs such as MUSICRAFT which have no ICONS without Having to modify
  41. the program.  If you plan on using ICONEXEC for a commercial product, just
  42. contact me first.
  43.  
  44. Good Luck,
  45.  
  46. John A. Toebes, VIII       through ...!mcnc!ncsu!jcz
  47. 120 H Northington Place
  48. Cary NC 27511              (919)-469-4210
  49.  
  50. Disclaimer: My Amiga thinks it's an A.I. machine and wrote the above itself
  51.